package cn.stylefeng.guns.modular.business.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 销卡渠道
 * </p>
 *
 * @author jwj
 * @since 2019-08-15
 */
@TableName("c_pin_channel")
@Data
public class PinChannel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "pin_channel_id", type = IdType.AUTO)
    private Integer pinChannelId;

    /**
     * 接口请求地址
     */
    @TableField("api_url")
    private String apiUrl;

    /**
     * 请求方式，1get，2post
     */
    @TableField("api_type")
    private String apiType;

    /**
     * 需要的参数列表[{}]
     */
    @TableField("params")
    private String params;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField("delete_flag")
    private Integer deleteFlag;

    @TableField("headers")
    private String headers;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 渠道名称
     */
    @TableField("channel_name")
    private String channelName;

    /**
     * 签名规则
     */
    @TableField("sign_type")
    private String signType;

    /**
     * 通道标识
     */
    @TableField("channel_code")
    private String channelCode;

    /**
     * 大小写，大写1，小写2
     */
    @TableField("sign_caps")
    private Integer signCaps;

    /**
     * 参数加密方式
     */
    @TableField("param_sign_type")
    private Integer paramSignType;

    @TableField("category_id")
    private Long categoryId;

    /**
     * 开启与否，0不开启，1开启
     */
    @TableField("status")
    private Integer status;



    @Override
    public String toString() {
        return "PinChannel{" +
        "pinChannelId=" + pinChannelId +
        ", apiUrl=" + apiUrl +
        ", apiType=" + apiType +
        ", params=" + params +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        ", headers=" + headers +
        ", remark=" + remark +
        ", channelName=" + channelName +
        ", signType=" + signType +
        ", channelCode=" + channelCode +
        ", signCaps=" + signCaps +
        ", paramSignType=" + paramSignType +
        ", categoryId=" + categoryId +
        "}";
    }
}
